<!-- <template>
  <div id="app">
    <h1>父组件</h1>
    <child-com></child-com>
  </div>
</template>

<script>
  // import childCom from './childCom'
  // 1.引用组件
  import childCom from '@/components/childCom'
  // 2.注册组件
  export default{
    name:'firstCom',
    data (){
      return{

      },
      components:{
        childCom:childCom
      }
    }
  }
</script>

<style scoped>
  #app{
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
</style> -->
